package com.tezign.intelligence.mini.dam.aifamilyconsultant.bean;

import com.tezign.intelligence.mini.dam.aifamilyconsultant.constant.CodeInterFace;

public enum RequestStatusEnum implements CodeInterFace {
	BAD_REQUEST("-2", "bad request/illegal parameter"),
	NOT_FOUND("-1", "service not found"),
	SUCCESS("0", "success"),
	EXCEPTION("1", "error occured"),
	FORBIDDEN_OPERATION("2", "forbbiden operation"),
	NOT_BE_DESIGNER("3", "this request required one designer"),
	NOT_BE_CUSTOMER("4", "this request required one customer"),
	ILLEGAL_USER("5", "illegal user"),
	ILLEGAL_PROJECT("6", "illegal project"),
	NOT_SUPPORT_EMOJI("7", "not support emoji"),
	SMS_CAPTCHA_TOO_OFTEN("8", "sms captcha get too often"),
	VALID_TOO_OFTEN("9", "valid too often"),
	CAPTCHA_INVALID("10", "captcha is invalid");

	private String code;
	private String message;

	private RequestStatusEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return this.code;
	}

	public String getMessage() {
		return this.message;
	}
}